Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
Data Structures


Bounding Spheres

A bounding sphere is a sphere that completely encloses an object. A bounding sphere is defined by the TQ3BoundingSphere data type.

typedef struct TQ3BoundingSphere {
   TQ3Point3D                 origin;
   float                      radius;
   TQ3Boolean                 isEmpty;
} TQ3BoundingSphere;
Field Description
origin
The origin of the bounding sphere.
radius
The radius of the bounding sphere; all points making up the bounding sphere are this far away from the origin of the sphere.
isEmpty
A Boolean value that specifies whether the bounding sphere is empty (kQ3True) or not (kQ3False). If this field contains the value kQ3True, the other field of this structure are invalid.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996